﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using ComicReader.Model;
using ConverterPage=ComicReader.Views.ConverterPage;

namespace ComicReader.Controllers
{
    internal class ConverterPageController
    {
        private readonly ConverterPage ConverterPage;

        private readonly IConversionService ConversionService;

        public ConverterPageController(ConverterPage page)
        {
            if (page == null)
            {
                throw new ArgumentNullException("page");
            }

            ConverterPage = page;
            ConversionService = new ConversionService();

            //Convert();
        }

        public List<FileSystemInfo> GetDirectory()
        {
            var dialog = new FolderBrowserDialog();

            return dialog.ShowDialog() == DialogResult.OK ? new List<FileSystemInfo> {new DirectoryInfo(dialog.SelectedPath)} : null;
        }



        private void Convert()
        {

        }
    }
}
